package com.common.app.data.bean

import com.contrarywind.interfaces.IPickerViewData


/**
 *
 * 作者：sosou
 *
 * 版本：1.0
 *
 * 创建日期：14/2/2023
 *
 * 描述：
 *
 * 修订历史：
 *
 */
class TimeSelectorBean : IPickerViewData {
    private var id: Long = 0
    private var name: String = ""
    private var description: String? = ""
    private var others: String? = ""

    override fun toString(): String {
        return "TimeSelectorBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", others='" + others + '\'' +
                '}'
    }

    constructor(id: Long, name: String) {
        this.id = id
        this.name = name
    }

    constructor(id: Long, name: String, description: String?, others: String?) {
        this.id = id
        this.name = name
        this.description = description
        this.others = others
    }

    fun getId(): Long {
        return id
    }

    fun setId(id: Long) {
        this.id = id
    }

    fun getName(): String {
        return name
    }

    fun setName(name: String) {
        this.name = name
    }

    fun getDescription(): String? {
        return description
    }

    fun setDescription(description: String?) {
        this.description = description
    }

    fun getOthers(): String? {
        return others
    }

    fun setOthers(others: String?) {
        this.others = others
    }

    //这个用来显示在PickerView上面的字符串,PickerView会通过getPickerViewText方法获取字符串显示出来。
    override fun getPickerViewText(): String {
        return name
    }
}